/* 移动端答题详情样式 */

.page-wrapper {
    padding: 20px 0 80px;
}

/* 成绩概览 */
.score-overview {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.score-main {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.score-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.score-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.score-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-primary);
}

.detail-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.detail-icon.correct {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
}

.detail-icon.wrong {
    background: rgba(245, 101, 101, 0.1);
    color: var(--danger-color);
}

.detail-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 题目列表 */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.question-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.question-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.question-status {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.question-status.correct {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
}

.question-status.wrong {
    background: rgba(245, 101, 101, 0.1);
    color: var(--danger-color);
}

.question-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* 题目图片 */
.question-image {
    max-width: 100%;
    max-height: 250px;
    width: auto;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
    object-fit: contain;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.option-item {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: white;
}

.option-label {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    word-break: break-word;
}

/* 选项图片 */
.option-image {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    border-radius: 6px;
    margin-top: 8px;
    object-fit: contain;
}

/* 解析图片 */
.explanation-image {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
    object-fit: contain;
    box-shadow: var(--shadow-sm);
}

/* 填空题答案显示 */
.fill-in-answer-display {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.fill-in-answer-display .answer-item {
    margin-bottom: 12px;
}

.fill-in-answer-display .answer-item:last-child {
    margin-bottom: 0;
}

.answer-value.keywords {
    color: #6c757d;
    font-style: italic;
}

.option-item.user-answer {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.option-item.user-answer .option-label {
    background: var(--primary-color);
    color: white;
}

.option-item.correct-answer {
    border-color: var(--success-color);
    background: rgba(72, 187, 120, 0.05);
}

.option-item.correct-answer .option-label {
    background: var(--success-color);
    color: white;
}

.option-item.user-answer.wrong {
    border-color: var(--danger-color);
    background: rgba(245, 101, 101, 0.05);
}

.option-item.user-answer.wrong .option-label {
    background: var(--danger-color);
    color: white;
}

.answer-info {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

.answer-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.answer-label {
    color: var(--text-secondary);
}

.answer-value {
    font-weight: 600;
}

.answer-value.user-answer {
    color: var(--primary-color);
}

.answer-value.correct {
    color: var(--success-color);
}

/* 解析部分 */
.explanation-section {
    padding: 12px;
    background: rgba(102, 126, 234, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
}

.explanation-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.explanation-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* 加载和空状态 */
.loading-container {
    padding: 60px 20px;
    text-align: center;
}

.empty-container {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 15px;
    margin-bottom: 24px;
}

/* 响应式调整 */
@media (max-width: 375px) {
    .score-value {
        font-size: 40px;
    }
    
    .question-title {
        font-size: 14px;
    }
    
    .option-text {
        font-size: 13px;
    }
}

/* Markdown和KaTeX样式 */
.question-title .katex,
.option-text .katex,
.explanation-content .katex {
    font-size: 1em;
}

.question-title .katex-display,
.option-text .katex-display,
.explanation-content .katex-display {
    margin: 0.5em 0;
    overflow-x: auto;
}

